using System;
using System.Text;
using System.Collections.Generic;

namespace Demo_G.O.S.E.ServerEngine.AIEngine.Agent
{

/**
 * This class is used to represent the parameters to construct a particular
 * type of daemon service.
 */
    public class ServiceParams : AgentParams
    {

        /** Indicates whether or not a service will be "public". */
        private bool makePublic = true;

        /**
         * Constructs a new ServiceParams object
         */
        public ServiceParams( String type )
            : base(type)
        {
        }

        /**
         * Sets whether or not the constructed service will be public.
         */
        public void setPublic( bool makePublic )
        {
            this.makePublic = makePublic;
        }

        /**
         * Returns whether or not the constructed service will be public.
         */
        public bool getPublic()
        {
            return this.makePublic;
        }

        /**
         * Constructs a new DaemonService from the type and properties that the
         * ServiceParams object contains.
         */
        //public Agent newInstance() {
        //DaemonService service = (DaemonService)super.newInstance();
        //service.isPublic = makePublic;
        //return service;
        //}

        /**
         * Returns a String representation of this instance.
         */
        //public String toString() {
        //StringBuffer buff = new StringBuffer(super.toString());
        //if(makePublic)
        //    buff.append("public");
        //return buff.toString();
        //}
    }
}
